package com.duan.laugh.event.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 事件通知
 * </p>
 *
 * @author liutf
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("event_notice")
@ApiModel(value = "EventNotice对象", description = "事件通知")
public class EventNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "事件处理规则id")
    private Long eventHandlerRuleId;

    @ApiModelProperty(value = "接收对象（9部门、10岗位、11角色、12用户）")
    private Integer receiveObject;

    @ApiModelProperty(value = "接收对象的值，多个用逗号分隔")
    private String receiveObjectValue;

    @ApiModelProperty(value = "类型（5短信、7邮件、6微信、8站内消息）")
    private Integer type;

    @ApiModelProperty(value = "模板id")
    private Long templateId;

    @ApiModelProperty(value = "延迟时间（单位：秒）")
    private Integer delay;

    @ApiModelProperty(value = "处理方式")
    private Integer handling;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
